﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Items;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Dividends
{
    /// <summary>
    /// 果树理财
    /// </summary>
    public class Dividend: FullAuditedEntity<long>
    {
        public virtual ICollection<Item> Item { get; set; }

        /// <summary>
        /// 期限（月）
        /// </summary>
        public int? Timelimit { get; set; }

        /// <summary>
        /// 分红比例
        /// </summary>
        public decimal? DividendAmount { get; set; }
        /// <summary>
        /// 分红类型
        /// </summary>
        public DividendType? DividendTypes { get; set; }

        /// <summary>
        /// 分红类型
        /// </summary>
        public enum DividendType : int
        {
            /// <summary>
            /// 现金分红
            /// </summary>
            [Description("现金分红")]
            CashDividend = 0,

        }


    }
}
